// This file is part of Indico.
// Copyright (C) 2002 - 2025 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.

@use 'base/palette' as *;

:global(.ui.list).evt-list {
  max-height: 30vh;
  overflow-y: auto;

  :global(.item).evt-item {
    .detail {
      margin-top: 2px;
      width: 350px;
      display: inline-block;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      color: $dark-gray;
    }

    .delete-button {
      flex-shrink: 0;
    }
  }
}

.list-flex {
  display: flex;
  justify-content: start;
  gap: 15px;

  &.disabled {
    background-color: $pastel-gray;
  }
}

.date-span {
  flex-basis: 10%;
  flex-shrink: 0;
  font-size: 12px;
  color: $dark-gray;
}

.category-chain {
  color: $dark-gray;
}

.event-title {
  flex-grow: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;

  a {
    margin-right: 5px;
  }
}

.warning-reason {
  color: $red;
}

.positive-note {
  color: $dark-green;
}

:global(.ui.dropdown .menu) > :global(.item).load-more {
  padding: 0 !important;
  margin: 0;
  cursor: default;

  &:hover {
    background: unset;
  }
}

.load-more > div {
  text-align: center;
  padding: 11px 16px; // Same as <Dropdown.Item>
}
